Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tridentImageRegistry to Helm chart (trident-image-registry to cli) #774

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mayrstefan
Copy link

@mayrstefan mayrstefan commented Oct 18, 2022

Change description

The helm chart has a parameter imageRegistry which is used to set an alternative registry url for trident and csi sidecar images which can cause an issue for some installations. That registry has to contain images from two different sources.
This change keeps imageRegistry for the csi sidecar images and adds tridentImageRegistry to use for mirrored trident images.
It tries to do the same for the cli with an addition trident-image-registry parameter

Project tracking

Should fix #772

Do any added TODOs have an issue in the backlog?

N/A

Did you add unit tests? Why not?

I did not find tests for imageRegistry that I could have modified and extended. But I guess it would be good to have test coverage for both parameters.

Does this code need functional testing?

Yes, because I'm no programmer and I don't know if I broke something I did not intend to.

Is a code review walkthrough needed? why or why not?

Don't know.

Should additional test coverage be executed in addition to pre-merge?

Don't know.

Does this code need a note in the changelog?

Changelog entry is included in this PR.

Does this code require documentation changes?

Yes. Both parameters need some documentation.
There is also a breaking change: imageRegistry is not used for trident images any more

Additional Information

None

@mayrstefan mayrstefan changed the title Issue 772 Add tridentImageRegistry to Helm chart (trident-image-registry to cli) Oct 18, 2022
Separate tridentImageRegistry (NetApp images) from imageRegistry (csi sidecar images) in helm chart.
Fall back to imageRegistry if tridentImageRegistry is not set.
Added --trident-image-registry to installer.
@CmdrSharp
Copy link

This is needed. We strictly use custom registries to avoid rate limits from Docker Hub. We want to pull the Astra/Trident images through that custom registry, but let the CSI Sidecar get pulled from GCR. This currently requires us to hard-specify image versions with the helm chart instead of just specifying a registry for the Trident images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trident-operator.imageRegistry with custom registry not handled properly
2 participants